<%@ Control Language="vb" codebehind="EditArticle.ascx.vb" autoeventwireup="false" Inherits="EfficionConsulting.Articles.EditArticle" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<%@ Register TagPrefix="Portal" TagName="URL" Src="~/controls/URLControl.ascx" %>
<%@ Register TagPrefix="dnn" TagName="TextEditor" Src="~/controls/TextEditor.ascx"%>
<%@ Register TagPrefix="Portal" TagName="Tracking" Src="~/controls/URLTrackingControl.ascx" %>
<%@ Register TagPrefix="Portal" TagName="Audit" Src="~/controls/ModuleAuditControl.ascx" %>

<script language="javascript" src="controls/PopupCalendar.js"></script>

<TABLE width="750">
	<TR id="trCategories" runat="server" vAlign="top" >
		<TD class="SubHead"><dnn:label id="plCategory" runat="server" controlname="drpCategories" suffix=":" /></TD>
		<TD>
			<asp:DropDownList id="drpCategories" runat="server" AutoPostBack="False" DataTextField="CategoryName" DataValueField="CategoryID" CssClass="NormalTextBox" /></TD>
	</TR>
	<TR vAlign="top">
		<TD class="SubHead"><dnn:label id="plTitle" runat="server" controlname="txtTitle" suffix=":" /></TD>
		<TD>
			<asp:textbox id="txtTitle" runat="server" cssclass="NormalTextBox" width="390" Columns="30" maxlength="100"></asp:textbox>
			<asp:requiredfieldvalidator id="valTitle" runat="server" CssClass="NormalRed" ErrorMessage="You Must Enter A Title For The Article" Display="Dynamic" ControlToValidate="txtTitle">* Required</asp:requiredfieldvalidator></TD>
	</TR>
	<tr vAlign="top">
		<td class="SubHead"><dnn:label id="plImage" runat="server" controlname="cboImage" suffix=":" /></td>
		<td><portal:url id="ctlImage" runat="server" width="300" showtabs="False" showurls="False" urltype="F" showtrack="False" showlog="False" required="False"></portal:url></TD>
	</tr>
	<TR>
		<TD class="SubHead" vAlign="top" width="140"><dnn:label id="plDescription" runat="server" controlname="txtDescription" suffix=":" /></TD>
		<TD>
			<asp:textbox id="txtDescription" runat="server" TextMode="MultiLine" Rows="5" Width="390px"></asp:textbox>
			<asp:requiredfieldvalidator id="valDescription" runat="server" CssClass="NormalRed" ErrorMessage="You Must Enter A Description Of The Article" Display="Dynamic" ControlToValidate="txtDescription">* Required</asp:requiredfieldvalidator>
		</TD>
	</TR>
	<tr vAlign="top">
		<td class="SubHead"><dnn:label id="plDetailType" runat="server" suffix=":" /></TD>
		<td>
			<asp:RadioButtonList id="rblDetailType" cssclass="Normal" RepeatDirection="Horizontal" AutoPostBack="True" runat="server" >
				<asp:listitem text="No Link" ResourceKey="detailTypeNone" value="NoLink" runat="server" />
				<asp:listitem text="Text/HTML" ResourceKey="detailTypeHTML" value="HTML" runat="server" />
				<asp:listitem text="Internal Page" ResourceKey="detailTypeInternal" value="Internal" runat="server" />
				<asp:listitem text="External Link" ResourceKey="detailTypeExternal" value="External" runat="server" />
			</asp:RadioButtonList>
		</td>
	</tr>
	<tr vAlign="top">
		<td class="SubHead"><dnn:label id="plDetails" runat="server" suffix=":" /></td>
		<td>
			<asp:textbox id="txtExternal" runat="server" maxlength="250" cssclass="NormalTextBox" Width="390" />
			<asp:dropdownlist id="cboInternal" width="390" CssClass="NormalTextBox" Runat="server" DataTextField="TabName"	DataValueField="TabId" />
			<asp:textbox id="txtArticle" runat="server" CssClass="NormalTextBox" width="600" Columns="44" TextMode="Multiline" Rows="18" />
			<dnn:TextEditor id="TextEditor1" Width="600" Height="400" runat="server" /><BR>
		</td>
	</tr>
	<TR>
		<TD class="SubHead">
			<dnn:label id="plPublishDate" runat="server" controlname="txtPublishDate" suffix=":" />
		</TD>
		<TD>
			<asp:textbox id="txtPublishDate" maxLength="10" columns="10" runat="server" CssClass="NormalTextBox" />
			<asp:hyperlink id="cmdCalendar" Text="Calendar" ResourceKey="publishCalendarLink" CssClass="CommandButton" Runat="server" />
			<asp:comparevalidator id="valPublishDate" runat="server" CssClass="NormalRed" ControlToValidate="txtPublishDate"
				ResourceKey="PublishDate.ErrorMessage" ErrorMessage="<br>You have entered an invalid date!" Display="Dynamic" Type="Date" Operator="DataTypeCheck" />
		</TD>
	</TR>
	<TR>
		<TD class="SubHead">
			<dnn:label id="plExpireDate" runat="server" controlname="txtExpireDate" suffix=":" /></TD>
		<TD>
			<asp:textbox id="txtExpireDate" maxLength="10" columns="10" runat="server" CssClass="NormalTextBox" />
			<asp:hyperlink id="cmdCalendar2" ResourceKey="expireCalendarLink" CssClass="CommandButton" Runat="server" />
			<asp:comparevalidator id="valExpireDate" runat="server" CssClass="NormalRed" ControlToValidate="txtExpireDate"
				ResourceKey="ExpireDate.ErrorMessage" ErrorMessage="<br>You have entered an invalid date!" Display="Dynamic" Type="Date" Operator="DataTypeCheck" />
		</TD>
	</TR>
	<TR valign="top">
		<TD class="SubHead">
			<dnn:label id="plFeatured" runat="server" controlname="chkFeatured" suffix=":" /></TD>
		<TD>
			<asp:checkbox id="chkFeatured" Runat="server" CssClass="NormalTextBox" />
		</td>
	</TR>
	<TR id="trApproval" runat="server">
		<TD class="SubHead">
			<dnn:label id="plApproved" runat="server" controlname="chkApproved" suffix=":" /></TD>
		<TD>
			<asp:checkbox id="chkApproved" Runat="server" CssClass="NormalTextBox" /></TD>
	</TR>
</TABLE>
<P>
	<asp:linkbutton id="cmdUpdate" ResourceKey="cmdUpdate" Text="Update" runat="server" BorderStyle="none" CssClass="CommandButton" />&nbsp;
	<asp:linkbutton id="cmdCancel" ResourceKey="cmdCancel" Text="Cancel" runat="server" BorderStyle="none" CausesValidation="False" CssClass="CommandButton" />&nbsp;
	<asp:linkbutton id="cmdDelete" ResourceKey="cmdDelete" Text="Delete" runat="server" BorderStyle="none" CausesValidation="False" CssClass="CommandButton" />
</P>
<portal:Audit id="ctlAudit" runat="server" />
<br>
<br>
<portal:Tracking id="ctlTracking" runat="server" />

